package com.dianping.cat.home.jar.entity;

import com.dianping.cat.home.jar.BaseEntity;
import com.dianping.cat.home.jar.IVisitor;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;


public class JarReport
  extends BaseEntity<JarReport>
{
  private String m_domain;
  private Date m_startTime;
  private Date m_endTime;
/*  16 */   private Map<String, Domain> m_domains = new LinkedHashMap();






/*  23 */   public void accept(IVisitor visitor) { visitor.visitJarReport(this); }


  public JarReport addDomain(Domain domain) {
/*  27 */     this.m_domains.put(domain.getId(), domain);
/*  28 */     return this;
  }


  public boolean equals(Object obj) {
/*  33 */     if (obj instanceof JarReport) {
/*  34 */       JarReport _o = (JarReport)obj;

      if (!equals(getDomain(), _o.getDomain())) {
/*  37 */         return false;
      }

/*  40 */       if (!equals(getStartTime(), _o.getStartTime())) {
/*  41 */         return false;
      }

/*  44 */       if (!equals(getEndTime(), _o.getEndTime())) {
/*  45 */         return false;
      }

/*  48 */       if (!equals(getDomains(), _o.getDomains())) {
/*  49 */         return false;
      }


/*  53 */       return true;
    }

/*  56 */     return false;
  }


/*  60 */   public Domain findDomain(String id) { return (Domain)this.m_domains.get(id); }


  public Domain findOrCreateDomain(String id) {
/*  64 */     Domain domain = (Domain)this.m_domains.get(id);

/*  66 */     if (domain == null) {
/*  67 */       synchronized (this.m_domains) {
/*  68 */         domain = (Domain)this.m_domains.get(id);

/*  70 */         if (domain == null) {
/*  71 */           domain = new Domain(id);
/*  72 */           this.m_domains.put(id, domain);
        }
      }
    }

/*  77 */     return domain;
  }


/*  81 */   public String getDomain() { return this.m_domain; }



/*  85 */   public Map<String, Domain> getDomains() { return this.m_domains; }



/*  89 */   public Date getEndTime() { return this.m_endTime; }



/*  93 */   public Date getStartTime() { return this.m_startTime; }



  public int hashCode() {
/*  98 */     int hash = 0;

/* 100 */     hash = hash * 31 + ((this.m_domain == null) ? 0 : this.m_domain.hashCode());
/* 101 */     hash = hash * 31 + ((this.m_startTime == null) ? 0 : this.m_startTime.hashCode());
/* 102 */     hash = hash * 31 + ((this.m_endTime == null) ? 0 : this.m_endTime.hashCode());
/* 103 */     return hash * 31 + ((this.m_domains == null) ? 0 : this.m_domains.hashCode());
  }




  public void mergeAttributes(JarReport other) {
/* 110 */     if (other.getDomain() != null) {
/* 111 */       this.m_domain = other.getDomain();
    }

/* 114 */     if (other.getStartTime() != null) {
/* 115 */       this.m_startTime = other.getStartTime();
    }

/* 118 */     if (other.getEndTime() != null) {
/* 119 */       this.m_endTime = other.getEndTime();
    }
  }


/* 124 */   public Domain removeDomain(String id) { return (Domain)this.m_domains.remove(id); }


  public JarReport setDomain(String domain) {
/* 128 */     this.m_domain = domain;
/* 129 */     return this;
  }

  public JarReport setEndTime(Date endTime) {
/* 133 */     this.m_endTime = endTime;
/* 134 */     return this;
  }

  public JarReport setStartTime(Date startTime) {
/* 138 */     this.m_startTime = startTime;
/* 139 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/jar/entity/JarReport.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */